<html>
<body>
<p>Reports <code>filter</code> or <code>filterNot</code> on <code>Set</code> and suggests using <code>intersect</code> or <code>diff</code> instead.</p>
<p><b>Example:</b></p>
<pre><code>
  val set = Set(1, 2)
  val others = Set(2, 3)
  set.filter(others.contains(_))
  set.filterNot(others.contains)
  set.filter(x => !others.contains(x))
  set.filterNot(x => !others.contains(x))
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  val set = Set(1, 2)
  val others = Set(2, 3)
  set.intersect(others)
  set.diff(others)
  set.diff(others)
  set.intersect(others)
</code></pre>
<!-- tooltip end -->
</body>
</html>